package cn.dubito.api.event;

import cn.dubito.entity.enums.ProductStatusEnum;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;

/**
 * @author liliang
 * @description: 产品状态事件
 * @date 2018/5/28.
 */
public class ProductStatusEvent implements Serializable {

    private String id;
    private ProductStatusEnum status;

    public ProductStatusEvent(String id, ProductStatusEnum status) {
        this.id = id;
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ProductStatusEnum getStatus() {
        return status;
    }

    public void setStatus(ProductStatusEnum status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
